<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环语句的使用</title>
</head>
<body>
<script>
    let end = +prompt("请输入循环次数")
    let i = 1
    while (i<=end){
        document.write(`循环第${i}次 <br>`)
        i++
    }
</script>
</body>
</html>